Q28: What is the default visibility of the state variables?

A. public

B. internal

C. private

D. external

Q29: Out of the following code samples, which one would compile

without errors?

A. contract EnumContract {

enum Choices{Expensive, Regular, economic}

}

B. contract EnumContract {

enum Choices{1, 2, 3}

}

C. contract EnumContract {

enum Choices{true, false, true}

}

D. contract EnumContract {

enum Choices{Very Expensive, Quite Regular, Almost

Economic}

}

Q30: What would be the issue with the following code when

compiled and run with values in setValue set to first time 127

and second time 128?

// SPDX-License-Identifier: SOME IDENTIFIER

pragma solidity ^0.8.10;

contract MaxValueContract {

int8 veryBigNumber;

function getValue() public view returns(int8) {

return veryBigNumber;

}

function setValue(int8 newValue) public {